import request from '@/utils/request'

export async function getProjectPlanLawListApi(params) {
  var resp = await request({
    url: '/projectbase/projectplanlaw/',
    method: 'get',
    params
  })
  return resp;
}

export async function createProjectPlanLawApi(data) {
  var resp = await request({
    url: '/projectbase/projectplanlaw/',
    method: 'post',
    data
  })
  return resp
}

export async function updateProjectPlanLawApi(id, data) {
  var resp = await request({
    url: '/projectbase/projectplanlaw/' + id + '/',
    method: 'put',
    data
  })
  return resp
}

export async function deleteProjectPlanLawApi(id) {
  var resp = await request({
    url: '/projectbase/projectplanlaw/' + id + '/',
    method: 'delete'
  })
  return resp
}

